home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Abalone 1.4.2 / src / Global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-21  |  1.1 KB  |  40 lines  |  [TEXT/MPS ]

  1. #ifndef GLOBAL_H
  2. #define GLOBAL_H
  3.  
  4. #include "Rules.h"
  5. #include "Settings.h"
  6.  
  7. #ifndef THINK_C
  8. #include <QuickDraw.h>
  9. #include <Types.h>
  10. #endif
  11.  
  12. #define TopLeft(aRect)    (* (Point *) &(aRect).top)
  13. #define BotRight(aRect)    (* (Point *) &(aRect).bottom)
  14.  
  15. #define BIG_WIDTH        54
  16. #define BIG_HEIGHT        47
  17. #define SMALL_WIDTH        38
  18. #define SMALL_HEIGHT    33
  19.  
  20. extern Settings            gSet;
  21. extern WindowPtr        gAbaloneWindow;
  22.                     //    The application's main window.
  23. extern Boolean            gQuitFlag;
  24. extern Boolean            gInBackground;
  25.                     //    Is the program currently in the background?
  26. extern Boolean            gBlackAndWhite;
  27.                     //    Is the monitor currently (including always) in black & white mode?
  28. extern Boolean            gInterrupted;
  29.                     //    Did the user interrupt thinking (i.e. is the result useable?)?
  30. extern unsigned long    gMoveStartTicks;
  31.                     //    Time the computation of the best move started (in ticks ::= 1/60 seconds)                 
  32. extern unsigned long    gProgStartTicks;
  33.                     //    TickCount value at program startup                  
  34. extern Boolean            gFileSaved;
  35.                     //    Has the current game position been saved?
  36. extern short            gCurrentValue;
  37.                     //    Value of the current board.                    
  38. extern MoveData            gLastMove;
  39.  
  40. #endif